public class T3_6{
    public static void main(String s[]){
	int sum=0,n=0;
	while(sum<8888){
	  n=n+1;
	  sum=sum+n;
	}
	System.out.println(n-1);
    }
}
	